package dao

import (
	"context"
	"mall-portalv2/internal/model"
)

func (d *Dao) QueryOmsOrderSetting(ctx context.Context) (model.OmsOrderSetting, error) {
	tb := model.OmsOrderSetting{}
	result := model.OmsOrderSetting{}

	if err := d.db.WithContext(ctx).Table(tb.TableName()).Where("id = ?", 1).First(&result).Error; err != nil {
		return result, err
	}
	return result, nil
}
